function addFavorite(bkId){
	  $.ajax({
  		url: '${ctx}/favorite/addFavorite.do',
  		type: 'post',
  		dataType: 'json',
  		data: {bookId : bkId},
  		success: function(rst, textStatus){
  	  		if(rst.result == "success"){
  	  		  alert("收藏成功");
  	  	  	}
  	  	  	if(rst.result == "added"){
  	  	  	  alert("已经收藏了该图书！");
  	  	  	}
  	  	  	if(rst.result == "error"){
  	  	  	  alert("您还没有登录，请登录！");
  	  	  	}
  		}
  	  });
  }